package DaEr2_1;

public class SuShu2 {
    public static void main(String[] args) {
        int num,n=0;
        for (num = 2; num < 999; num++) {
            boolean flag=true;
            for (int j=2;j<num;j++){
                if (num%j==0){
                    flag=false;
                    break;
                }
            }
            if (flag){
                n++;
                System.out.print(num+"\t\t");
            }
            if (n%5==0){
                System.out.println();
            }
        }
    }
}
